<?php

return [
    // 微信配置
    'wechat' => [
        // 微信H5登录配置
        'web' => [
            'app_id'     => env('wechat.app_id', ''),
            'app_secret' => env('wechat.app_secret', ''),
            'redirect_uri' => env('wechat.redirect_uri', ''),
        ],
        // 微信小程序配置
        'mini' => [
            'app_id'     => env('wechat.mini_app_id', ''),
            'app_secret' => env('wechat.mini_app_secret', ''),
        ],
    ],

    // 支付宝配置
    'alipay' => [
        'app_id'          => env('alipay.app_id', ''),
        'private_key'     => env('alipay.private_key', ''),
        'public_key'      => env('alipay.public_key', ''),
        'alipay_public_key' => env('alipay.alipay_public_key', ''),
        'notify_url'      => env('alipay.notify_url', ''),
        'return_url'      => env('alipay.return_url', ''),
        'sandbox'         => env('alipay.sandbox', false),
    ],

    // 抖音配置
    'douyin' => [
        'app_id'     => env('douyin.app_id', ''),
        'app_secret' => env('douyin.app_secret', ''),
        'redirect_uri' => env('douyin.redirect_uri', ''),
    ],

    // JWT配置
    'jwt' => [
        'secret'         => env('jwt.secret', 'your-secret-key-here'),
        'expire'         => env('jwt.expire', 7200), // 2小时
        'refresh_expire' => env('jwt.refresh_expire', 604800), // 7天
        'algorithm'      => 'HS256',
        'leeway'         => 60,
    ],
];